/**
 * Program should find prime numbers which are smaller or equal to the inputted 
 * from keyboard integer number. Prime numbers - integral numbers that are not 
 * evenly divisible by any other numbers except for themselves and 1. 
 * For example, for input number 6, the output of the program should be: [2, 3, 5].
 */


package javatraining;

import java.util.*;

public class PrimeNumbers {
    @SuppressWarnings("empty-statement")
        public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int n = 0;
        while ( n <= 0 )
        {
        System.out.println("Enter  the number (should be greater than 0):");
        n = in.nextInt();
        };
    
        for (int i =0 ; i<=n; i++)
        {
        System.out.println("i=" + i);
        }
            
        

    }    
}
